<html>
<body>

<?php
include_once("httpsqs_client.php");
$httpsqs_host="localhost";
$httpsqs_port="1218";
$httpsqs_auth ="";
$httpsqs_charset = "utf-8";

$httpsqs = new httpsqs($httpsqs_host, $httpsqs_port, $httpsqs_auth, $httpsqs_charset);

/*
1. PUT text message into a queue.
   If PUT successful, return boolean: true
   If an error occurs, return boolean: false
*/
$result = $httpsqs->put("asdf","test php");

/*
2. GET text message from a queue.
   Return the queue contents.
   If there is no unread queue message, return text: HTTPSQS_GET_END
   If an error occurs, return boolean: false.
*/
$result = $httpsqs->get("asdf"); 

echo $result;

?>

</body>
</html>